<?php

setlocale(LC_ALL, "ru_RU.UTF-8");
mb_internal_encoding("UTF-8");

require_once ("./config/setup.php");
require_once ("./libs/utils.inc.php");
require_once ("./libs/db.class.php");
$sm = new SSmarty();
$db = new DB();

$sm->assign("data", BBCodeToHtml($sm, $_POST["data"]));
$sm->assign("design", $sm->template_dir);
$sm->display("markitupPreview.html");
?>